package com.springboot.quanxian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.springboot.quanxian.entity.SysRole;
import com.springboot.quanxian.entity.search.SysRoleSearch;
import com.springboot.quanxian.entity.view.SysRoleView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author lbk
 * @since 2023-04-17
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 分页查询
     * @param iPage
     * @param obj
     * @return
     */
    List<SysRoleView> getPageList(@Param("iPage") IPage iPage, @Param("obj") SysRoleSearch obj);

    /**
     * 导出列表
     * @param obj
     * @return
     */
    List<SysRoleView> downLoadList(@Param("obj") SysRoleSearch obj);


}
